<?php if(!defined("INTPL")) exit(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



<title>无标题文档</title>

<script type="text/javascript" charset="utf-8" src="public/js/kindeditor/kindeditor.js"></script>

<script type="text/javascript" >

    KE.show({
        id : 'content' //TEXTAREA输入框的ID
   });
   


function checkform(form){
	if(form.pid.value==0){
		alert('所属类别不能为空！');
	return false;
	}
}



</script>
</head>

<body>

<div id="news">



	<form action="?a=news_add_do" method="post" id="f1" onsubmit="return checkform(this)">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	
	  <tr>
		<td><div align="right">新闻名称</div></td>
		<td></td>
		<td>
			<input type="text" name="title" />
		</td>
	  </tr>
	  
	  <tr>
		<td><div align="right">新闻类别</div></td>
		<td></td>
		<td>
			<select name="pid">
				<option value="0">请选择</option>
				<?php foreach($news_tree as $key) { ?>
					<option value="<?php echo $key["id"] ?>"><?php echo $key["title"] ?></option>
				<?php } ?>
			</select>
		</td>
	  </tr>
	  
	
	  
	  <tr>
		<td><div align="right">内容</div></td>
		<td></td>
		<td>
			<textarea id="content" name="content" cols="100" rows="12"></textarea>
		</td>
	  </tr>


	  
	  <tr>
		<td></td>
		<td></td>
		<td>
			<input type="submit" value="提交" />
			<input type="reset" value="重置" />
		</td>
	  </tr>

	  
	</table>
	</form>



<div>





</body>
</html>
